package cn.cityre.tools.db;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author sunzhaoye
 */
public class DynamicDataSource extends AbstractRoutingDataSource{

	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceContextHolder.getDbType();
	}

	@Override
	public void setDefaultTargetDataSource(Object defaultTargetDataSource) {

	}
}
